package com.luhaoran.hrm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author haoranlu
 * @project IntelliJ IDEA
 */
@Controller
@ResponseBody
/*@RestController   ==
@Controller  + @ResponseBody
*/

public class TestController {
    @RequestMapping("hello")
    public Object hello(){
        return "Hello student lhr!";
    }
    @GetMapping("page")
    public Object page(){
        return "This is page...";
    }
}
